﻿using DA;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace BL
{
    public class DonHangBL
    {
         DonHangDA donHangDA;

        public DonHangBL()
        {
            donHangDA = new DonHangDA();
        }
               
        public DataSet timKiemDonHang(int loai, String strTimKiem)
        {
            return donHangDA.timKiemDonHang(loai, strTimKiem);
        }

        public void updateDonHang(DataTable dt)
        {
            donHangDA.danhSachDonHangAdapter.Update(dt);
        }
        public DataSet sanXuatBanThanhPham(string maDonHang)
        {
            return donHangDA.sanXuatBanThanhPham(maDonHang);
        }

       public DataSet laySanPhamTheoMaDonHang(string maDonHang)
       {
           return donHangDA.laySanPhamTheoDonHang(maDonHang);
       }
       public DataSet theoDoiDonHangChung()
       {
           return donHangDA.theoDoiDonHangChung();
       }
       public DataSet theoDoiDonHangChiTiet(string maDonHang)
       {
           return donHangDA.theoDoiDonHangChiTiet(maDonHang);
       }

    }
}
